package net.dodoman.compare;

public class CompareObj implements Comparable<CompareObj> {

	private int id;

	public String abc;

	public void setId(int id) {
		this.id = id;
	}

	public int getId() {
		return this.id;
	}

	@Override
	public int compareTo(CompareObj co) {
		if (id > co.id) {
			return 1;
		} else if (id < co.id) {
			return -1;
		}
		return 0;
	}
}
